﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.DynamicProxy;

namespace AppWorks.Domain.Dci
{
    public static class RoleAssigner
    {
        //public static object Assign(this AggregateRoot<object> rootObj, IRole role)
        //{
        //    ProxyGenerator generator = new ProxyGenerator();
        //    var options = new ProxyGenerationOptions();
        //    options.AddMixinInstance(role);
        //    return generator.CreateClassProxy(rootObj.GetType(), new Type[] { role.GetType() }, options);
        //}
    }
}
